package com.yangyang.ralearn.common.types;

import java.io.Serializable;


/**
 * 所有类型的基类
 * 
 * @author Administrator
 * 
 */
public class JType implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5133514334337183178L;
	protected String name = "object"; // 默认类型
	protected String parent; // 父类型

	public JType(String name, String parament) {
		this.name = name;
		this.parent = parament;
	}

	public String getName() {
		return this.name;
	}

	@Override
	public boolean equals(Object obj) {
		JType ins = (JType) obj;
		return ins != null && ins.name.equals(this.name);
	}

	@Override
	public String toString() {
		return "JType [name=" + name + ", parentType=" + parent + "]";
	}
}
